﻿           
/// <summary>
/// IMI body measure.
/// 
/// File Name:     IMIBodyMeasure .cs
/// 
/// Description:  1, This script offers an interface for users. This interface gives the measurements of some value of the body
///                  such as boyd height, arm length, leg length, shoulder width, chest girth, waist girth , hips girth.
///                
///               2, this script must be with another one called Singleton.cs which realize the singleton function.
/// 
/// Author:		Shawn pan 潘晋
/// 
/// Create Date:  10/14/2016	 
/// 
/// 
/// 
/// </summary>




using UnityEngine;
using System.Collections;

public class IMIBodyMeasure: MonobeSingleTon<IMIBodyMeasure> {

	//This must be used before every time we measure a new user.
	public virtual void ClearPrevData()
	{
		ClearFrontPrevData();
		ClearSidePrevData();
	}

	public virtual void ClearFrontPrevData()
	{
		
		
	}

	public virtual void ClearSidePrevData()
	{
		
		
	}


	//for measuring datas when user front facing the device
	public virtual void BeginMeasureFront()
	{
		//measure the front part of the body

	}


	public virtual void EndMeasureFront()
	{


	
	}



	public virtual bool IsFacingFront()
	{
		//judge if the user is facing to the Mirror.  
		return true;
	}


	public virtual bool IsFrontMeasureTimeEnough()
	{
		return true;
	}



	//for measuring datas when user side facing the device
	public virtual void BeginMeasureSide()
	{

	}
	
	public virtual bool IsFacingSide()
	{
		//Judge if the user is side to the Mirror. Should be an angle range between  85 to 95  degree.
		return true;
	}
	
	
	public virtual bool IsSideMeasureTimeEnough()
	{
		return true;
	}



	//In  center meter
	public virtual float GetBodyHeight()
	{
		return 180f;
	}


	public virtual float GetArmLength()
	{
		return 50f;
	}

	public virtual float GetLegLength()
	{
		return 50f;
	}

	public virtual float GetShoulderWidth()
	{
		return 60f;
	}

	public virtual float GetChestGirth()
	{
		return 90f;
	}

	public virtual float GetWaistGirth()
	{
		return 80f;
	}

	public virtual float GetHipsGirth()
	{

		return 100f;
	}

























}
